{include file="public/header" /}
<body>
<style>
    .cion{
        display: inline-block;
        width: 120px;
    }
</style>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 用户管理
    <span class="c-gray en">&gt;</span> 用户列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            日期范围：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="datemin" class="input-text Wdate" style="width:120px;">
             -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="datemax" class="input-text Wdate" style="width:120px;">
            <input type="text" class="input-text" style="width:250px" placeholder="UID/账号" value="{:input('word')}" name="word">
            <span class="select-box" style="width: 100px;">
                <select name="status" class="select">
                    <option value="0">全部状态</option>
                    <option value="1" {if isset($_GET['status']) && $_GET['status'] == 1}selected{/if}>禁用中</option>
                </select>
            </span>
            <button type="submit" class="btn btn-success">搜索</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
        </span>
        <span class="r">共有数据：<strong></strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="9">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="70">ID</th>
                <th width="70">会员</th>
                <th width="70">充值筹码</th>
                <th width="70">投资筹码</th>
                <th width="70">代理筹码</th>
                <th width="70">释放AYB</th>
                <th width="70">AYB</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td class="text-l"></td>
                <td class="text-l"></td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
    </div>
</div>

{include file="public/footer" /}

<script type="text/javascript">
function member_start(obj,id,status){
    if(status == 0){
        var info = '确认要禁用吗？';
    }else{
        var info = '确认要启用吗？';
    }
    layer.confirm(info,function(index){
        $.ajax({
            type: 'POST',
            url: "{:url('status')}",
            data: {id:id,status:status},
            dataType: 'json',
            success: function(data){
                if(data.status == 'y'){
                    layer.msg("操作成功",{icon:1,time:1000,shade: [0.3, '#000']},function(){
                        location.replace(location.href);
                    });
                }else{
                    layer.msg(data.info,{icon:2,time:1000,shade: [0.3, '#000']});
                }
            },
            error:function(data) {
                console.log(data.msg);
            },
        });
    });
}
function auth(obj,id,status,field){
    if(status == 0){
        var info = '确认要启用吗？';
    }else{
        var info = '确认要禁用吗？';
    }
    layer.confirm(info,function(index){
        $.ajax({
            type: 'POST',
            url: "{:url('auth')}",
            data: {id:id,status:status,field:field},
            dataType: 'json',
            success: function(data){
                if(data.status == 'y'){
                    layer.msg("操作成功",{icon:1,time:1000,shade: [0.3, '#000']},function(){
                        location.replace(location.href);
                    });
                }else{
                    layer.msg(data.info,{icon:2,time:1000,shade: [0.3, '#000']});
                }
            },
            error:function(data) {
                console.log(data.msg);
            },
        });
    });
}

</script>